package cn.zysuyuan.item.mapper;

import cn.zysuyuan.item.entity.Role;
import cn.zysuyuan.item.entity.RoleAndPermission;

import java.util.List;
import java.util.Map;

/**
 * @author flypig
 * @version 1.0
 * @date 2020-03-17 18:44
 */
public interface RoleMapper {
    int save(Role role);
    int update(Role role);
    int delete(String id);
    int insert(List<RoleAndPermission> list);
    int deleteById(String id);
    int deleteByPermId(String id);

    Role findById(String id);

    List<String> findPermById(String id);

    List<Role> selectList(Map<String, Object> map);

    List<Role> findAll();

    int deleteByRoleId(String id);
}
